#include"Client.hpp"
#include<iostream>
#include"Comm.hpp"

int main()
{
    Client c;
    c.OpenPipeForWrite();

    std::string message;
    while(true)
    {
        std::cout<<"请输入要发送的消息：";
        //getline：从XX流中读取数据写道XX里
        std::getline(std::cin,message);
        c.SendPipe(message);
    }
    c.ClosePipe();
    return 0;
}